const cashCoupon = {
  query: 'GET /api/v1/coupon/rule/group', //主规则分页查询
  queryCurrent: 'GET /api/v1/coupon/rule/group/{id}', // 获取单个主规则的详情
  create: 'POST /api/v1/coupon/rule/group', // 创建主规则
  update: 'PUT /api/v1/coupon/rule/group', // 更新主规则
  delete: 'DELETE /api/v1/coupon/rule/group', // 删除主规则
  enable: 'PUT /api/v1/coupon/rule/group/online/{id}', //主规则启用
  disable: 'PUT /api/v1/coupon/rule/group/offline/{id}', //主规则停用
  querySubRules: 'GET /api/v1/coupon/rule/child/{refId}', //根据ID查询子规则
  subCreate: 'POST /api/v1/coupon/rule/child', //子规则新增
  subUpdate: 'PUT /api/v1/coupon/rule/child', //子规则更新
  subDelete: 'DELETE /api/v1/coupon/rule/child', //子规则删除
  queryCurrentSub: 'GET /api/v1/coupon/rule/child/{id}/id', // 获取单个子规则的详情
};

export default cashCoupon;
